package com.meilai.project.service.finance.supplier;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.dto.finance.supplier.SupplierManageDTO;
import com.meilai.project.entity.finance.supplier.Supplier;
import com.meilai.project.vo.finance.supplier.SupplierVO;

import java.util.List;

/**
 * @author ykb
 * @date 2022/2/12 20:22
 */
public interface SupplierManageService extends IService<Supplier> {
    // 分页
    Page<SupplierVO> selectPageList(Integer current_page, Integer page_size,
                                    SupplierManageDTO searchDTO);
    // 分页
    List<SupplierVO> selectList(SupplierManageDTO searchDTO);


    // 新增
    Boolean addOne(SupplierManageDTO dto);

    // 编辑
    Boolean editOne(SupplierManageDTO dto);

    // 删除
    Boolean delete(Long id);

}
